package com.swh.dao;


import com.swh.dao.base.BaseDao;
import com.swh.entity.Qualification;
import com.swh.entity.QualificationCondition;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface QualificationDao extends BaseDao<Qualification> {
    @Override
    int insert(Qualification appVersion);

    @Override
    int delete(int id);

    @Override
    int update(Qualification appVersion);

    @Override
    Qualification load(int id);

    @Override
    List<Qualification> pageList(int pageNull, int pageSize);

    @Override
    int pageListCount(int offset, int pageSize);

    List<HashMap> selectPage(@Param("pageNull") Integer pageNull, @Param("pageSize") Integer pageSize,
                             @Param("condition") QualificationCondition condition);


//    审核通过
    int updateById(Qualification appVersion);

//    审核失败
    int updateById2(Qualification appVersion);
}